package com.ruoyi.exam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam.mapper.ExamRespondMapper;
import com.ruoyi.exam.domain.ExamRespond;
import com.ruoyi.exam.service.IExamRespondService;

/**
 * 考生作答Service业务层处理
 * 
 * @author ba7lgj
 * @date 2024-04-03
 */
@Service
public class ExamRespondServiceImpl implements IExamRespondService 
{
    @Autowired
    private ExamRespondMapper examRespondMapper;

    /**
     * 查询考生作答
     * 
     * @param recordId 考生作答主键
     * @return 考生作答
     */
    @Override
    public ExamRespond selectExamRespondByRecordId(Long recordId)
    {
        return examRespondMapper.selectExamRespondByRecordId(recordId);
    }

    /**
     * 查询考生作答列表
     * 
     * @param examRespond 考生作答
     * @return 考生作答
     */
    @Override
    public List<ExamRespond> selectExamRespondList(ExamRespond examRespond)
    {
        return examRespondMapper.selectExamRespondList(examRespond);
    }

    /**
     * 新增考生作答
     * 
     * @param examRespond 考生作答
     * @return 结果
     */
    @Override
    public int insertExamRespond(ExamRespond examRespond)
    {
        return examRespondMapper.insertExamRespond(examRespond);
    }

    /**
     * 修改考生作答
     * 
     * @param examRespond 考生作答
     * @return 结果
     */
    @Override
    public int updateExamRespond(ExamRespond examRespond)
    {
        return examRespondMapper.updateExamRespond(examRespond);
    }

    /**
     * 批量删除考生作答
     * 
     * @param recordIds 需要删除的考生作答主键
     * @return 结果
     */
    @Override
    public int deleteExamRespondByRecordIds(Long[] recordIds)
    {
        return examRespondMapper.deleteExamRespondByRecordIds(recordIds);
    }

    /**
     * 删除考生作答信息
     * 
     * @param recordId 考生作答主键
     * @return 结果
     */
    @Override
    public int deleteExamRespondByRecordId(Long recordId)
    {
        return examRespondMapper.deleteExamRespondByRecordId(recordId);
    }
}
